package drds.binlog.server;


import drds.binlog.common.Authors;
import drds.binlog.data_object.Entry;
import drds.common.Author;

import java.util.ArrayList;
import java.util.List;

@Author(name = Authors.LI_YANG)
public class Message
{
    private long id;

    private List<Entry> entryList = new ArrayList<Entry>();


    public Message(long id, List entryList)
    {
        this.id = id;
        this.entryList = entryList == null ? new ArrayList<Entry>() : entryList;
    }


    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public List<Entry> getEntryList()
    {
        return entryList;
    }


}
